package course.digui;

public class DiGui {
    public static void main(String[] args) {
        int result = getJc(5);
        System.out.println(result);
    }

    public static int getJc(int num){
        if(num ==1){
            return 1;
        }else {
            return num * getJc(num-1);
        }
    }
}
